package com.subaiwang.pojo;

import javax.persistence.*;

@Entity
@Table(name = "official_website", schema = "subaiwang", catalog = "")
public class OfficialWebsite {
    private long id;
    private String images;
    private String name;
    private String href;
    private String idValue;
    private String idValue2;
    private String idValue3;
    private Long type;

    @Id
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "images")
    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "href")
    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    @Basic
    @Column(name = "idValue")
    public String getIdValue() {
        return idValue;
    }

    public void setIdValue(String idValue) {
        this.idValue = idValue;
    }

    @Basic
    @Column(name = "idValue2")
    public String getIdValue2() {
        return idValue2;
    }

    public void setIdValue2(String idValue2) {
        this.idValue2 = idValue2;
    }

    @Basic
    @Column(name = "idValue3")
    public String getIdValue3() {
        return idValue3;
    }

    public void setIdValue3(String idValue3) {
        this.idValue3 = idValue3;
    }

    @Basic
    @Column(name = "type")
    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        OfficialWebsite that = (OfficialWebsite) o;

        if (id != that.id) return false;
        if (images != null ? !images.equals(that.images) : that.images != null) return false;
        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        if (href != null ? !href.equals(that.href) : that.href != null) return false;
        if (idValue != null ? !idValue.equals(that.idValue) : that.idValue != null) return false;
        if (idValue2 != null ? !idValue2.equals(that.idValue2) : that.idValue2 != null) return false;
        if (idValue3 != null ? !idValue3.equals(that.idValue3) : that.idValue3 != null) return false;
        if (type != null ? !type.equals(that.type) : that.type != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (id ^ (id >>> 32));
        result = 31 * result + (images != null ? images.hashCode() : 0);
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (href != null ? href.hashCode() : 0);
        result = 31 * result + (idValue != null ? idValue.hashCode() : 0);
        result = 31 * result + (idValue2 != null ? idValue2.hashCode() : 0);
        result = 31 * result + (idValue3 != null ? idValue3.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        return result;
    }
}
